package com.goverse.mancraft.world;

import android.util.Log;

/**
 * Created by gaoyu on 2017/4/21.
 */

public class Location {

    private int x;
    private int y;

    public Location(int x, int y) {
        this.x = x;
        this.y = y;
    }

    public int getY() {
        return y;
    }

    public void setY(int y) {
        this.y = y;
    }

    public int getX() {

        return x;
    }

    public void setX(int x) {
        this.x = x;
    }

    @Override
    public boolean equals(Object obj) {

        if (x == ((Location)obj).getX() && y == ((Location)obj).getY()) return true;
        return super.equals(obj);
    }
}
